<template>
  <el-container class="home_container">
    <el-header>
      <div>
        <img>
        <span>小岛管理中心</span>
      </div>
      <el-button type="info"
                 @click="logout">logout</el-button>
    </el-header>
    <el-container>
      <el-aside>

      </el-aside>
      <el-main></el-main>
    </el-container>
  </el-container>
</template>
<script>
export default {
  methods: {
    logout () {
      window.sessionStorage.removeItem('item')
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="less" scoped>
.home_container {
  height: 100%;
}
.el-header {
  background-color: #70a1ff;
  display: flex;
  justify-content: space-between;
}
.el-aside {
  background-color: #1e90ff;
}
.el-main {
  background-color: #dfe4ea;
}
</style>
